package com.lopo.smstest;

import org.springframework.beans.factory.annotation.Autowired;

public class Client {

    public static void main(String[] args) {

        SmsDTO smsDTO = new SmsDTO();
        smsDTO.setPhone("13800138000");
        smsDTO.setType(2);
        smsDTO.setVesselName("gg");

        SendSmsHandler smsHandler = SmsFactory.getSmsHandler(smsDTO.getType());
        smsHandler.sendSms(smsDTO);
    }
}
